home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
DESKLIBC
/
SOURCES.ZIP
/
DeskLib
/
!DLSources
/
Libraries
/
Resource
/
c
/
Init
next >
Wrap
Text File
|
1995-07-10
|
1KB
|
41 lines
/*
#### # # # #
# # # # # The FreeWare C library for
# # ## ### # # # # ### RISC OS machines
# # # # # # # # # # # ___________________________________
# # #### ### ## # # # #
# # # # # # # # # # Please refer to the accompanying
#### ### #### # # ##### # ### documentation for conditions of use
________________________________________________________________________
File: Resource.c
Author: Copyright © 1992 Jason Williams
Version: 1.01 (06 May 1993)
Purpose: Resource file (files within user application directory)
management functions
*/
#include <string.h>
#include "DeskLib:Resource.h"
#include "DeskLib:Str.h"
#ifdef _DeskLib_SDLS
#include "DLLLib.dll.h"
#endif
extern void Resource_Initialise(char *respath)
{
#ifdef _DeskLib_SDLS
char *dllname = strdup( respath);
if ( dllname) dll_nameApp( dllname);
/* So that the application's name is displayed and used by the DLLManager */
#endif
resource_pathname[0] = '<';
strncat(resource_pathname, respath, 23);
resource_pathname[24] = '\0'; /* Ensure string is terminated */
strcat(resource_pathname, "$Dir>.");
}